package com.ruibang.glass.sale.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


@Data
@ApiModel
@TableName(value = "g_sale_return_inventory")
public class GSaleReturnInventory extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "Id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "退货单号")
    private String returnNumber;
    @ApiModelProperty(value = "异议单号")
    private String disputeNumber;
    @ApiModelProperty(value = "入库单号")
    private String inventoryNumber;
    @ApiModelProperty(value = "结算客户")
    private String customer;

    @ApiModelProperty(value = "结算客户")
    private String customerId;
    @ApiModelProperty(value = "退货类型")
    private String returnType;

    @ApiModelProperty(value = "当前审批人")
    private String currentApprover;
    @ApiModelProperty(value = "入库仓库")
    private String warehouse;
    @ApiModelProperty(value = "经办人")
    private String handler;

    @ApiModelProperty(value = "审批状态")
    private String approveStatus;

    @ApiModelProperty(value = "经办人")
    private String handlerId;
    @ApiModelProperty(value = "入库日期")
    private Date inventoryDate;
    @ApiModelProperty(value = "入库类型")
    private String inventoryType;
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "异议单Id")
    private String disputeId;

    @ApiModelProperty(value = "创建用户")
    @TableField(exist = false)
    private String createUserId;

    @ApiModelProperty(value = "发货单号")
    private String deliveryOrderNumber;

    @ApiModelProperty(value = "是否申请过 1_暂未申请发货 2_已申请")
    private String isStatus;

    @ApiModelProperty(value = "物管业务Id")
    private String cpBcpId;


    @ApiModelProperty(value = "审批节点")
    @TableField(exist = false)
    private String nodeName;

    @ApiModelProperty(value = "审批人")
    @TableField(exist = false)
    private String approveUser;

    @TableField(exist = false)
    private List<SaleReturnInventoryProduct> saleReturnInventoryProductList;

}
